package com.szrt.java.day20170111.ch05;

import java.util.Random;

public class MathTest {
	
	
	public static void main(String[] args) {
		
		double xx = Math.round(2.53);
		System.out.println(xx);
		
		System.out.println(Math.PI);
		
		System.out.println(Math.E);
		
		System.out.println(Math.sqrt(2.0));
		
		System.out.println(Math.pow(2.0, 3.0));
		
		//   0<=x<1
		System.out.println(Math.random());
		

		Random random = new Random();
		
		for(int index =0; index<100; index++){
			
			int yy = random.nextInt(12);
			System.out.println(yy);
		}
		
		
		
	}

}
